package org.example;

public class Car {
    private String cname;
    private Double prise;

    public Car() {
    }

    public Car(String cname, Double prise) {
        this.cname = cname;
        this.prise = prise;
    }

    @Override
    public String toString() {
        return "Car{" +
                "cname='" + cname + '\'' +
                ", prise=" + prise +
                '}';
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public Double getPrise() {
        return prise;
    }

    public void setPrise(Double prise) {
        this.prise = prise;
    }
}
